#!/usr/bin/env python
# encoding=utf-8
import multiprocessing
import sys

from scpy.logger import get_logger

import crawler_dragonresearch
import crawler_malware
import crawler_zeustracker

logger = get_logger(__file__)

reload(sys)
sys.setdefaultencoding("utf-8")


def task(crawler):
    crawler.run()


if __name__ == '__main__':
    processes = [
        multiprocessing.Process(target=task, args=(crawler_zeustracker,)),
        multiprocessing.Process(target=task, args=(crawler_malware,)),
        multiprocessing.Process(target=task, args=(crawler_dragonresearch,)),
    ]
    for process in processes:
        process.start()
    for process in processes:
        process.join()
